Working With Time Base Values
Every time base contains a rate, a start time, a stop time, a current time, and some status information. The Movie Toolbox provides a number of functions that allow your application to work with the contents of a time base. This section describes those functions.The
GetTimeBaseTime
function lets you retrieve the current time value of a time base. You can set the current time value by calling theSetTimeBaseTime
function--this function requires you to provide a time structure. Alternatively, you can set the current time based on a time value by calling theSetTimeBaseValue
function.You can determine the rate of a time base by calling the
GetTimeBaseRate
function. You can set the rate of a time base by calling theSetTimeBaseRate
function. You can determine the effective rate of a specified time base (relative to the master time base to which it is subordinate) by calling theGetTimeBaseEffectiveRate
function.You can retrieve the start time of a time base by calling the
GetTimeBaseStartTime
function. You can set the start time of a time base by calling theSetTimeBaseStartTime
function. Similarly, you can use
theGetTimeBaseStopTime
andSetTimeBaseStopTime
functions to work with the stop time of a time base.The Movie Toolbox provides functions that allow you to work with the status information of a time base. The
GetTimeBaseStatus
function allows you to read the current status of a time base. TheGetTimeBaseFlags
function helps you obtain the control flags of a time base. You can set these flags by calling theSetTimeBaseFlags
function.
Subtopics
- SetTimeBaseTime
- SetTimeBaseValue
- GetTimeBaseTime
- SetTimeBaseRate
- GetTimeBaseRate
- GetTimeBaseEffectiveRate
- SetTimeBaseStartTime
- GetTimeBaseStartTime
- SetTimeBaseStopTime
- GetTimeBaseStopTime
- SetTimeBaseFlags
- GetTimeBaseFlags
- GetTimeBaseStatus